package cn.yunhe.dao;

import cn.yunhe.entity.LeaveMessage;
import cn.yunhe.entity.Page;
import cn.yunhe.entity.User;
import cn.yunhe.entity.leaveMess;

import java.util.List;

public interface LeaveMessageDao {


    /**
     * 查询总条数
     *
     * @return
     */
    int getNewsCount();

    public User selectIdByName(User user);
    public Boolean addLeaveMessage(LeaveMessage leaveMessage);

    /**
     * 分页查询
     * @param
     * @param
     * @return
     */
    List<LeaveMessage> getLeaveMessage(Page page);
    /**
     * 查询总条数
     *
     * @return
     */
    int getleaveMessageDaoCount();
    /***
     * 删除留言
     */
    boolean delLeaveMessageByNewsid(int leaveId);

    /***
     * 更新
     * @param leavem
     * @return
     */
    boolean updateLeavemessage(leaveMess leavem);


}
